package com.lingchen.dao;

import com.lingchen.entity.Choice;
import com.lingchen.entity.Collect;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2018/2/28
 * Function  收藏
 */
@Repository
public interface CollectDao {

    /**
     * 收藏题目
     */
    int insertCollect(Collect... collects);

    /**
     * 查询收藏的题目
     */
    List<Collect> selectCollect(@Param("userName") long userName,@Param("courseId") String courseId);
}
